﻿using CodeGenerator.Models;
using CodeGenerator.ProjectBL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeGenerator.Mapper
{
    public static class AuthenticationMap
    {
        public static LoginDto ConvertToLoginDto(this AuthenticationModel authenticationModel)
        {
            return new LoginDto
            {
                UserName = authenticationModel.Username,
                Password = authenticationModel.Password
            };
        }
    }
}
